package cn.yqx.bankshop.goods.service;

import cn.yqx.bankshop.goods.service.fallback.SupplierServiceFallbackFactory;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="bankshop-user-service", fallback = SupplierServiceFallbackFactory.class)
public interface SupplierService {

    @GetMapping(value = "/api/v1/supplier/find_supplier")
    JSONObject findSupplierById(@RequestParam("supplierId") Long supplierId);
}
